home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / rename.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.1 KB  |  41 lines

  1. RENAME
  2.  
  3. Changes the name of or moves a file or directory.
  4.  
  5. Format
  6.  
  7. RENAME [FROM] {<name} [TO | AS] <name>
  8.  
  9. Template
  10.  
  11. FROM/A/M,TO=AS/A,QUIET/S
  12.  
  13. Location
  14.  
  15. C:
  16.  
  17. RENAME renames the FROM file or directory with the specified TO name. The
  18. FROM and TO files or directories must be on the same volume. If the name
  19. refers to a directory, RENAME changes the directory name without changing the
  20. names of the files or subdirectories in that directory. When there are
  21. multiple items in the FROM argument, the TO argument must be a directory.
  22.  
  23. If you rename a directory or if you use RENAME to give a file another
  24. directory name, AmigaDOS changes the position of that directory or file in
  25. the filing system hierarchy. This effectively moves the items.
  26.  
  27. Example 1:
  28.  
  29. 1> RENAME Work/Ex1 AS :Test/Ex2
  30.  
  31. renames the file Ex1 as Ex2 and moves it from the Work directory to the Test
  32. directory. The Test directory must exist in the root directory for this
  33. command to work.
  34.  
  35. Example 2:
  36.  
  37. 1> RENAME 3.doc 5.doc a.doc TO Docs
  38.  
  39. moves the 3.doc, 5.doc, and a.doc files to the Docs directory. The Docs
  40. directory must already exist.
  41.